﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="wucBuyProductTable.ascx.cs" Inherits="CungMuaC5.WebUC.wucBuyProductTable" %>
<script type="text/javascript">
    function onddlChanged(dropdown, lblDonGia, lblThanhTien, lblTong) {
        var dongia = parseInt(lblDonGia.innerHTML);
        var soluong = parseInt(dropdown.value);
        lblThanhTien.innerHTML = (dongia * soluong).toString() + " đ";
        lblTong.innerHTML = lblThanhTien.innerHTML;
        return false; //Required if drop down has a server side event as well.
    }
</script>
        <table style="margin-left: 79px" Width="733px">
                <tr>
                    <td align="center" 
                        style="border-style: solid; border-width: thin; background-color: #666666;">
                        <span style="color: rgb(255, 255, 255); font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(101, 101, 101); display: inline !important; float: none; ">
                        Phiếu/Sản phẩm</span></td>
                 <td align="center" 
                        style="border-style: solid; border-width: thin; background-color: #666666;">
                        <span style="color: rgb(255, 255, 255); font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(101, 101, 101); display: inline !important; float: none; ">
                        Đơn giá</span></td>
                    <td align="center" 
                        style="border-style: solid; border-width: thin; background-color: #666666;">
                        <span style="color: rgb(255, 255, 255); font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(101, 101, 101); display: inline !important; float: none; ">
                        Số lượng</span></td>
                    <td align="center" 
                        style="border-style: solid; border-width: thin; background-color: #666666;">
                        <span style="color: rgb(255, 255, 255); font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(101, 101, 101); display: inline !important; float: none; ">
                        Thành tiền</span></td>
                </tr>
                <tr>
                    <td style="border-style: solid; border-width: thin">
                        <asp:Label ID="lblName" runat="server" Text=""></asp:Label>
                    </td>
                    <td style="border-style: solid; border-width: thin" align="center">
                        <asp:Label ID="lblDonGia" runat="server" Text=""></asp:Label>
                        <asp:Label ID="Label5" runat="server" Text=" đ"></asp:Label>
                    </td> 
                    <td style="border-style: solid; border-width: thin" align="center">       
                    <asp:DropDownList ID="SoLuong" runat="server">
                            <asp:ListItem>1</asp:ListItem>
                            <asp:ListItem>2</asp:ListItem>
                            <asp:ListItem>3</asp:ListItem>
                            <asp:ListItem>4</asp:ListItem>
                            <asp:ListItem>5</asp:ListItem>
                            <asp:ListItem>6</asp:ListItem>
                            <asp:ListItem>7</asp:ListItem>
                            <asp:ListItem>8</asp:ListItem>
                            <asp:ListItem>9</asp:ListItem>
                            <asp:ListItem>10</asp:ListItem>
                     </asp:DropDownList>
                    </td>
                    <td style="border-style: solid; border-width: thin" align="right">
                        <asp:Label ID="lblThanhTien" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" align="right" style="border-style: solid; border-width: thin">
                        Phí giao hàng</td>
                    <td style="border-style: solid; border-width: thin" align="right">
                        0đ</td>
                </tr>
                <tr>
                    <td colspan="3" align="right" style="border-style: solid; border-width: thin">
                        Số tiền phải trả</td>
                    <td style="border-style: solid; border-width: thin" align="right">
                        <asp:Label ID="lblTong" runat="server" Text="Label"></asp:Label>
                    </td>
                </tr>
        </table>          